package cn.practice.weibopractice.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class CommentDTO {

    @ApiModelProperty(value = "评论内容", required = true)
    @NotBlank(message = "评论内容不能为空")
    @Size(min = 1, max = 100,message = "评论内容长度在1-100之间")
    private String content;


    @ApiModelProperty(value = "微博id", required = true)
    private long weiboId;
}
